﻿using System.Text.Json.Serialization;

namespace RsCms.UI.Models
{
    public class ReturnInfo<T>
    {
        int _code = 200;
        bool success;

        /// <summary>
        /// 操作成功状态
        /// </summary>

        [JsonPropertyName("success")]
        public bool Success
        {
            get
            {

                return success;
            }
            set
            {
                success = value;
            }
        }

        /// <summary>
        /// 对应操作代码
        /// </summary>
        [JsonPropertyName("code")]
        public int code
        {
            get
            {
                return _code;
            }
            set
            {
                _code = value;
            }
        }

        string msg = "";
        /// <summary>
        /// 服务器返回的信息
        /// </summary>
        [JsonPropertyName("msg")]
        public string Msg
        {
            get
            {

                return msg;
            }
            set
            {
                msg = value;
            }
        }


        /// <summary>
        /// 服务器返回的数据对像
        /// </summary>
        [JsonPropertyName("result")] public T Data { get; set; }

  

    }
}
